package com.weixing.mall.provider.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.api.model.enums.AgentLevelEnum;
import com.weixing.mall.provider.api.model.enums.ProfitFromEnum;
import com.weixing.mall.provider.model.enums.IsPayEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * AgentCommissionVo
 *
 * @author  gjq
 * @date  2019/10/15
 * @since  1.0
 **/
@Data
public class AgentCommissionVo {

    /**
     * id
     */
    private Long id;

    /**
     * 代理商id
     */
    private Long agentId;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 佣金金额
     */
    @JsonIgnore
    private BigDecimal commissionAmount;
    /**
     * 订单金额
     */
    @JsonIgnore
    private BigDecimal orderPrice;
    /**
     * 佣金途径
     */
    private ProfitFromEnum commissionFrom;
    /**
     * 是否有效
     */
    private IsEnableEnum isEnable;
    /**
     * 是否付款
     */
    private IsPayEnum isPay;
    /**
     * 备注
     */
    private String remark;

    /**
     * 代理商名称
     */
    private String agentName;
    private String agentSn;
    /**
     * 代理商等级
     */
    private AgentLevelEnum agentLevel;
    /**
     * 手机号
     */
    private String mobile;


    /**
     * 所属客服名称
     */
    private String customerName;

    /**
     * 订单编号
     */
    private String orderSn;

    /**
     *
     */
    private String orderAgentName;
    /**
     * 订单创建时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderGmtTime;
    /**
     * 订单审核时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderAuditTime;

    /**
     * 佣金金额
     */
    private String fmtCommissionAmount;
    /**
     * 订单金额
     */
    private String fmtOrderPrice;
}
